package com.clouddot.baipai.contract;


import com.clouddot.baipai.http.entity.response.getArcticListResponse;
import com.clouddot.baipai.http.entity.response.getSchoolInfoResponse;

import org.wxy.sdk.base.IBaseModel;
import org.wxy.sdk.base.IBasePresenter;
import org.wxy.sdk.base.IBaseView;

import rx.Observable;

/**
 * Created by wxy on 2018/05/27.
 *
 * @author wxy
 */
public interface ISchoolFragmentContract {

    interface IPresenter extends IBasePresenter {
        void getScholInfo(String type);

        void getArcticeInfo(String type, int pageindex, int pagesize);

    }

    interface IModel extends IBaseModel {
        Observable<getSchoolInfoResponse> getScholInfo(String acttype, String type);

        Observable<getArcticListResponse> getArcticeInfo(String acttype, String type, int pageindex, int pagesize);
    }

    interface IView extends IBaseView {
        void success(int flag, Object object);

        void fail(String errMsg);
    }
}
